package leetcode.editor.cn;

public class Test {
    public static void main(String[] args) {
        String str = "duanweiwei";
        String s = str.substring(0,4);
        System.out.println(s);
    }
}
